package com.probox.common.entity.vo.statistics;

import cn.hutool.core.util.ObjectUtil;
import com.probox.common.core.utils.StringUtils;
import com.probox.common.core.utils.money.MoneyUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class BeauticianRankingVo implements Serializable {

    private Long userId;

    private List<Long> storeIds;

    private Long storeId;

    private String nickName;

    private Integer number;


    private String numberProportion;

    private String numberProportionStr;


//    public String getNumberProportionStr() {
//        if (StringUtils.isEmpty(numberProportion)) return "0%";
//        return MoneyUtils.changeStrPercentage(numberProportion);
//    }

    private Long amount;

    public String getAmountStr() {
        if (ObjectUtil.isEmpty(amount)) return "0";
        return MoneyUtils.changeF2Y(amount);
    }


    private String amountProportion;

    private String amountProportionStr;

//    public String getAmountProportionStr() {
//        if (StringUtils.isEmpty(amountProportion)) return "0%";
//        return MoneyUtils.changeStrPercentage(amountProportion);
//    }

    private String startTime;

    private String endTime;


    private Integer pageSize;

    private Integer pageNum;

}
